package com.microservice.provider.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.microservice.common.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * write something please~
 *
 * @author huangrz
 * @since 2021/9/8
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tb_user")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UserEntity extends BaseEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String name;

    private Integer age;

    private String school;

}
